pub mod v1;
pub mod v3;

pub const WIDTH: u16 = 104;
pub const HEIGHT: u16 = 212;
pub const EPD_2IN13_FULL: u8 = 0;
pub const EPD_2IN13_PART: u8 = 1;

pub trait SpiDriverPin {
    fn set_cs(&mut self, is_high: bool) -> anyhow::Result<()>;
    fn set_dc(&mut self, is_high: bool) -> anyhow::Result<()>;
    fn set_sdo(&mut self, is_high: bool) -> anyhow::Result<()>;
    fn set_rst(&mut self, is_high: bool) -> anyhow::Result<()>;
    fn set_sck(&mut self, is_high: bool) -> anyhow::Result<()>;
    fn busy(&self) -> bool;
}
